{#{% include 'header.html' %}#}
<!DOCTYPE html>
<html>
    <head>
        <title>部 署 日 志</title>
        <meta charset="utf-8">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        {% set pro_name = tasks['pro_name'] %}
        {% set nginx_api_proxy = tasks['nginx_api_proxy'] %}
        <link href="/{{nginx_api_proxy}}/static/css/bootstrap.min.css" rel="stylesheet">
        <link href="/{{nginx_api_proxy}}/static/css/sweetalert.min.css" rel="stylesheet"/>
        <link href="/{{nginx_api_proxy}}/static/css/font-awesome.css" rel="stylesheet"/>
        <link href="/{{nginx_api_proxy}}/static/css/dataTables.bootstrap.css" rel="stylesheet"/>
    </head>

    <body>
        <div id="page-wrapper">
            <div class="header" align="center">
                <h1 class="page-header"> 获 取 {{ pro_name }} 项 目 部 署 日 志 </h1>
            </div>
            <div id="page-inner">
               <div class="row">
                  <div class="col-lg-12">
                      <div class="col-xs-12 col-md-5" style="margin-left:5%">
                          <div class="panel panel-info">
                             <div class="panel-heading" align="center" style="font-size:18px;font-weight: bold;">
                                 输 入 部 署 名 称 （ eg -> pro_demo_1-deploy-uat-9 ）
                             </div>
                             <div class="panel-body">
                                <div class="col-sm-12">
                                    <div class="col-sm-6" style="margin-left:5%; margin-top:2%;">
                                        <input class="form-control" type="text" id="deploy_name">
                                    </div>
                                    <div class="col-sm-2" align="center" style="line-height:45px; margin-left:2%; margin-top:1%;">
                                        <button id="search_btn" name="search_btn" type="button" class="btn btn-primary" onclick="search('{{ pro_name }}','{{ nginx_api_proxy }}')"> 查 询</button>
                                    </div>
                                    <div class="col-sm-2" align="center" style="line-height:45px; margin-left:2%; margin-top:1%;">
                                        <span id="search_result" style="font-size:14px;"></span>
                                    </div>
                                </div>
                             </div>
                          </div>
                      </div>

                  </div>
               </div>
            </div>
            <div id="page-inner2">
               <div class="row">
                  <div class="col-lg-12">
                     <div class="col-xs-12 col-md-11" style="margin-left:3%">
                        <div class="panel panel-info">
                            <div id="statist_data" class="panel-heading" align="center" style="font-size:20px; font-weight: bold;">
                                显 示 部 署 日 志
                            </div>
                            <div class="panel-body">
                                <form id="show">
                                    <div id='show_deploy_info'></div>
                                </form>
                            </div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
        </div>

        <div style="position:fixed;right:50px; top:30px; width:20px; height:20px;cursor:pointer">
            <a href="../index">首页</a>
        </div>

        <!-- 回到顶部 -->
        <div style="position:fixed;right:50px; bottom:30px; width:20px; height:20px;cursor:pointer">
            <a href="#"><span class="glyphicon glyphicon-eject" style = "font-size:30px;" aria-hidden="true"></span></a>
        </div>


        <script src="/{{nginx_api_proxy}}/static/scripts/jquery.min.js" type="text/javascript"></script>
        <script src="/{{nginx_api_proxy}}/static/scripts/bootstrap.min.js" type="text/javascript"></script>
        <script src="/{{nginx_api_proxy}}/static/scripts/common.js" type="text/javascript"></script>
        <script src="/{{nginx_api_proxy}}/static/scripts/log.js" type="text/javascript"></script>
        <script src="/{{nginx_api_proxy}}/static/scripts/sweetalert.min.js" type="text/javascript"></script>
        <script src="/{{nginx_api_proxy}}/static/scripts/jquery.dataTables.js" type="text/javascript"></script>
        <script src="/{{nginx_api_proxy}}/static/scripts/dataTables.bootstrap.js" type="text/javascript"></script>

        <!-- 设置埋点，控制台显示页面的 '白屏时间' -->
        <script type="text/JavaScript">
            console.log("页面白屏时间 : " + (performance.timing['responseStart'] - performance.timing['navigationStart']).toString())
        </script>

    </body>
</html>
